﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Mvc;
using LynxWiki.DomainModel;
using LynxWiki.Filters;
using LynxWiki.Search;

namespace LynxWiki.Controllers
{
    [InitializeSimpleMembership]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Title = "";
            ViewBag.Application = "Version: " + Assembly.GetExecutingAssembly().GetName().Version;
            ViewBag.Message = "LynxWiki - Agile and Dynamic";
            ViewBag.TagCloud = new TagCloud(LuceneSearch.GetTagCount());

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Title = "";
            ViewBag.Application = "Version: " + Assembly.GetExecutingAssembly().GetName().Version;
            ViewBag.Message = "LynxWiki - Agile and Dynamic";
            ViewBag.TagCloud = new TagCloud(LuceneSearch.GetTagCount());

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Title = "";
            ViewBag.Application = "Version: " + Assembly.GetExecutingAssembly().GetName().Version;
            ViewBag.Message = "J.W. Davidson";
            ViewBag.TagCloud = new TagCloud(LuceneSearch.GetTagCount());

            return View();
        }

        public ActionResult Privacy()
        {
            ViewBag.Title = "LynxWiki Site - Privacy Policy";
            ViewBag.Application = "Version: " + Assembly.GetExecutingAssembly().GetName().Version;
            ViewBag.Message = "LynxWiki Site - Privacy Policy";
            ViewBag.TagCloud = new TagCloud(LuceneSearch.GetTagCount());

            return View();

        }
        public ActionResult Terms()
        {
            ViewBag.Title = "LynxWiki Site - Terms & Conditions";
            ViewBag.Application = "Version: " + Assembly.GetExecutingAssembly().GetName().Version;
            ViewBag.Message = "LynxWiki Site - Terms & Conditions";
            ViewBag.TagCloud = new TagCloud(LuceneSearch.GetTagCount());

            return View();

        }
    }
}
